
// 登录
import loginRoutes from '@/config/router/login';


const routes = [
  { path: '/', redirect: '/login' },
  // 首页
  {
    path: '/home',
    name: 'home',
    component: () => import('@/pages/home/index.vue'),
    redirect: '/application',
    children: [
      {
        path: '/application',
        name: 'application',
        meta: { title: '应用管理' },
        component: () => import('@/pages/application/index.vue'),
      },
      {
        path: '/team',
        name: 'team',
        meta: { title: '团队管理' },
        component: () => import('@/pages/team/index.vue'),
      },
      {
        path: '/performance',
        name: 'performance',
        meta: { title: '页面性能' },
        component: () => import('@/pages/performance/index.vue'),
      },
      {
        path: '/queryLog',
        name: 'queryLog',
        meta: { title: '日志查询' },
        component: () => import('@/pages/queryLog/index.vue'),
      },
    ],
  },
  ...loginRoutes,
]
export default routes;
